Ext.define('Wgo.view.ExhibitionList', {
    extend: 'Ext.navigation.View',
    xtype: 'exhibitionlist',
    requires: ['Wgo.store.ExhibitionStore','Ext.dataview.List','Wgo.view.ExhibitionDetail'],
    config: {
        iconCls: 'action',
        title: 'Exhibitions',
        items: [
            {
                title: 'Exhibitions',
                xtype: 'list',
                //grouped: true,
                pinHeaders: true,
                itemTpl: '{name}',
                store: 'ExhibitionStore',
                onItemDisclosure: true,
                    listeners: {
                        itemtap: function(list, index, item, record) {
                        console.log("Eureka");
            }
        }
            },
            {
                xtype: 'header',
                docked: 'top'
            }]
    }
});
